<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>智慧商城</title>
  <link rel="stylesheet" href="./iconfont/iconfont.css" />
  <link rel="stylesheet" href="./css/index.css" />
  <link rel="stylesheet" href="./swiper/swiper-bundle.min.css" />
  <style>
    /*  Demo styles  */
    html,
    body {
      position: relative;
      height: 100%;
    }

    body {
      background: #eee;
      font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
      font-size: 14px;
      color: #000;
      margin: 0;
      padding: 0;
    }

    .swiper {
      width: 100%;
      height: 100%;
    }

    .swiper-slide {
      text-align: center;
      font-size: 18px;
      background: #fff;

      /* Center slide text vertically */
      display: -webkit-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      -webkit-align-items: center;
      align-items: center;
    }

    .swiper-slide img {
      display: block;
      width: 100%;
      height: 100%;
      /* object-fit: cover; */
    }

    .swiper-pagination .swiper-pagination-bullet {
      background-color: rgb(255, 30, 2);
      opacity: 1;
    }

    .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
      background-color: #313131;
    }
  </style>
</head>

<body>
  <!-- 头部区域 -->
  <header>
    <h1>智慧商城</h1>
  </header>
  <!-- 主体区域 -->
  <div class="main" id="app">
    <!-- 搜索框 -->
    <div class="search">
      <div class="input">
        <span class="iconfont icon-sousuo"></span> 搜索你要找的商品
      </div>
    </div>
    <!-- 轮播图 -->
    <div class="banner">
      <!-- Swiper -->
      <div class="swiper mySwiper">
        <div class="swiper-wrapper">
          <div class="swiper-slide" v-for="item in bannerImgList">
            <img :src="item" alt="" />
          </div>
        </div>
        <div class="swiper-pagination"></div>
      </div>
    </div>
    <!-- 新闻区 -->
    <div class="news">
      <i class="iconfont icon-shengyin_shiti"></i>
      <div><span>智慧商城2.0全新上线，更多新品等你来选~</span></div>
    </div>
    <!-- 导航区 -->
    <nav>
      <ul>
        <li v-for="item in navList">
          <a href="#"><img :src="item.imgUrl" alt="" />
            <p>{{item.text}}</p>
          </a>
        </li>
      </ul>
    </nav>
    <!-- 大图片 -->
    <div class="bigimg">
      <img v-for="item in bigimgList" :src="item.imgUrl" alt="">
    </div>
    <!-- 猜你喜欢 -->
    <div class="suki">
      <p>—— 猜你喜欢 ——</p>
    </div>
    <!-- 商品区域 -->
    <div class="goods">
      <a v-for="item in goodsList" href="javascript:;" @click="gogogo(item.goods_id)">
        <div class="good">
          <div class="left"><img :src="item.goods_image" alt="" />
          </div>
          <div class="right">
            <div class="top">
              <p>{{item.goods_name}} </p>
              <span>已售{{item.goods_sales}}件</span>
            </div>
            <div class="bottom"><i>¥{{item.goods_price_max}}</i> <span
                v-if="item.line_price_max>0">¥{{item.line_price_max}}</span></div>
          </div>
        </div>
    </div>
    </a>
  </div>

  </div>
  </div>
  <!-- 底部区域 -->
  <footer>
    <a href="./index.html" class="active">
      <span class="iconfont icon-shouye"></span>
      <p>首页</p>
    </a>
    <a href="./classify.html">
      <span class="iconfont icon-tubiao_fenlei"></span>
      <p>分类</p>
    </a>
    <a href="./shopingcart.html">
      <span class="iconfont icon-gouwuche"></span>
      <p>购物车</p>
    </a>
    <a href="./my.html">
      <span class="iconfont icon-wode-copy"></span>
      <p>我的</p>
    </a>
  </footer>
  <script src="./swiper/swiper-bundle.min.js"></script>
  <script src="./js/axios.js"></script>
  <script src="./js/common.js"></script>
  <script src="./js/vue.js"></script>
  <script src="./js/index.js"></script>
  <script>

  </script>
</body>

</html>